# -*- coding: utf-8 -*-
# 通过索引删除并获取列表元素

names = ['dewei','xiaomu']
pop_item = names.pop(0)
# ('pop_item', 'dewei', 'names', ['xiaomu'])
print('pop_item',pop_item,'names',names)